package com.jun.basic.listener;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * 请求监听器
 */
@Slf4j
@WebListener
public class RequestListener implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        log.info("RequestListener init");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        log.info("RequestListener destory");
    }
}
